import Request from '@/utils/request' //引入基本类
import {ContentList} from '@/type/resType/listenListResType'
import {xmlyResData} from '@/type/resType/resType'

class ListenListRequset extends Request  { //创建派生类
    // 获取导航列表
    getLsitenNavList(){
        return this.get<xmlyResData<any>>({
            url : '/revision/subject/category'
        })
    }
    // 某个分类的听单列表
    getCategorySubjectList(name:string,pageNum:number,pageSize:number){
        return this.get<ContentList>({
            url : `/revision/subject/categorySubjectList/${name}?${pageNum}&${pageSize}`
        })
    }
}
export  default  new ListenListRequset()